package com.fanhang.samples.springboot.data.mongodb.service;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.fanhang.samples.springboot.data.mongodb.domain.City;

@Repository
public interface CityRepository extends MongoRepository<City, Integer> {

	City findByName(@Param("name") String name);

}
